package com.zjweu.hkg.DAO;

import com.zjweu.hkg.POJO.HydroNodeRelation;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface HydroRelationDAO extends Neo4jRepository<HydroNodeRelation,Long> {
    @Query("MATCH (n)-[r]->(m) RETURN n, r, m")
    HydroNodeRelation[] getAll();
}
